import HomeView from '@/views/HomeView.vue'
export default [{
			path: '/',
			name: 'home',
			component: HomeView,
			redirect: "/index",
			children: 
			[{
				path: 'index',
				name: 'index',
				component: () => import('@/views/main/index.vue'),
				meta: {
					title: "首页",
					auth:false
				}
			}, {
				path: 'cate',
				name: 'cate',
				component: () => import('@/views/main/cate.vue'),
				meta: {
					title: "分类",
					auth:false
				}
			}, {
				path: 'buy',
				name: 'buy',
				component: () => import('@/views/main/buy.vue'),
			}, {
				path: 'cart',
				name: 'cart',
				component: () => import('@/views/main/cart.vue'),
				meta: {
					auth:true,//  需要权限才能访问
				}
			}, {
				path: 'my',
				name: 'my',
				component: () => import('@/views/main/my.vue'),
				meta: {
					auth:true,//  需要权限才能访问
				}
			}]
		},{
			path: '/msg',
			name: 'msg',
			component: () => import('../views/msg/msg.vue'),
		},]